import 'package:blue_plugin_example/route/linkdev.dart';
import 'package:blue_plugin_example/routes/routes.dart';
import 'package:flutter/material.dart';
import 'package:get/get_navigation/src/root/get_material_app.dart';
import 'package:get/get_navigation/src/routes/transitions_type.dart';

import 'binding/link_dev_binding.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    //设置尺寸（填写设计中设备的屏幕尺寸）如果设计基于360dp * 690dp的屏幕

    // ScreenUtil.init(
    //     BoxConstraints(
    //         maxWidth: MediaQuery.of(context).size.width,
    //         maxHeight: MediaQuery.of(context).size.height),
    //     designSize: Size(375, 812),
    //     context: context,
    //     minTextAdapt: true,
    //     orientation: Orientation.portrait);

    return GetMaterialApp(
        getPages: Routes.routePage,
        debugShowCheckedModeBanner: false,
        initialRoute: '/',
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        defaultTransition: Transition.fade,
        initialBinding: LinkDevBinding(),
        home: const LinkDev());
  }
}


